import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'

import content from '@/views/xutujuejin/content.vue'
import bot from '../views/xutujuejin/bot.vue'

import contentList from '@/views/xutujuejin/content_in/contentList.vue'


export const routesList = [
  {
    path: '/',
    name: 'content',
    component: content,
    meta: { title: '首页' }
  },
  {
    path: '/bot',
    name: 'bot',
    component: bot
  },
  {
    path: '/contentList',
    name: 'contentList',
    component: contentList,
    meta: { title: '推荐' }
  }
]



const router = createRouter({
  // history:createWebHistory(), //history模式
  history: createWebHashHistory(), //hash模式
  routes: routesList
})

export default router